//
//  LQBaseTableViewCell.m
//  LQBaseKit
//
//  Created by 戴志朋 on 15/9/23.
//  Copyright © 2015年 hzdracom. All rights reserved.
//

#import "LQBaseTableViewCell.h"

@implementation LQBaseTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

+ (instancetype)cellWithTableView:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{
    LQBaseTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:NSStringFromClass([self class]) forIndexPath:indexPath];
    if (cell == nil) {
        cell = [[self alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:NSStringFromClass([self class])];
    }
    return cell;
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self setupCustomSubviews];
    }
    return self;
}

- (void)updateWithData:(id)data{
    
}

- (void)setupCustomSubviews{
    // 布局UI
}

@end
